package com.Shoping.service.impl;

import com.Shoping.dao.AddressDao;
import com.Shoping.dao.impl.AddressDaoImpl;
import com.Shoping.entity.Address;
import com.Shoping.service.AddressService;

import java.sql.SQLException;
import java.util.List;

public class AddressServiceImpl implements AddressService {
    private AddressDao addressDao = new AddressDaoImpl();
    @Override
    public Integer addAddress(Address address) throws SQLException {
        return addressDao.addAddress(address);
    }

    @Override
    public List<Address> selectByUid(Integer uId) throws SQLException {
        return addressDao.selectByUid(uId);
    }
}
